﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Enferno.Public.Web.ShoppingBasket
{
    public static class ShoppingBasketHelper
    {
        private static string _bundlePath;
        private static readonly Lazy<ShoppingBasketBundler> BundlerInstance = new Lazy<ShoppingBasketBundler>(() => _bundlePath == null ? new ShoppingBasketBundler() : new ShoppingBasketBundler(_bundlePath));

        public static ShoppingBasketBundler Bundler
        {
            get { return BundlerInstance.Value; }
        }

        public static string BundlePath
        {
            get { return Bundler.BundlePath; }
            set { _bundlePath = value; }
        } 
    }
}
